package com.eshop.modules.product.service.dto;

public class ProductResultDto
{
    private Double minPrice;
    private Double minOtPrice;
    private Double minCost;
    private Integer stock;
    private Integer minIntegral;
    
    ProductResultDto(final Double minPrice, final Double minOtPrice, final Double minCost, final Integer stock, final Integer minIntegral) {
        this.minPrice = minPrice;
        this.minOtPrice = minOtPrice;
        this.minCost = minCost;
        this.stock = stock;
        this.minIntegral = minIntegral;
    }
    
    public static ProductResultDtoBuilder builder() {
        return new ProductResultDtoBuilder();
    }
    
    public Double getMinPrice() {
        return this.minPrice;
    }
    
    public Double getMinOtPrice() {
        return this.minOtPrice;
    }
    
    public Double getMinCost() {
        return this.minCost;
    }
    
    public Integer getStock() {
        return this.stock;
    }
    
    public Integer getMinIntegral() {
        return this.minIntegral;
    }
    
    public void setMinPrice(final Double minPrice) {
        this.minPrice = minPrice;
    }
    
    public void setMinOtPrice(final Double minOtPrice) {
        this.minOtPrice = minOtPrice;
    }
    
    public void setMinCost(final Double minCost) {
        this.minCost = minCost;
    }
    
    public void setStock(final Integer stock) {
        this.stock = stock;
    }
    
    public void setMinIntegral(final Integer minIntegral) {
        this.minIntegral = minIntegral;
    }
    
    public static class ProductResultDtoBuilder
    {
        private Double minPrice;
        private Double minOtPrice;
        private Double minCost;
        private Integer stock;
        private Integer minIntegral;
        
        ProductResultDtoBuilder() {
        }
        
        public ProductResultDtoBuilder minPrice(final Double minPrice) {
            this.minPrice = minPrice;
            return this;
        }
        
        public ProductResultDtoBuilder minOtPrice(final Double minOtPrice) {
            this.minOtPrice = minOtPrice;
            return this;
        }
        
        public ProductResultDtoBuilder minCost(final Double minCost) {
            this.minCost = minCost;
            return this;
        }
        
        public ProductResultDtoBuilder stock(final Integer stock) {
            this.stock = stock;
            return this;
        }
        
        public ProductResultDtoBuilder minIntegral(final Integer minIntegral) {
            this.minIntegral = minIntegral;
            return this;
        }
        
        public ProductResultDto build() {
            return new ProductResultDto(this.minPrice, this.minOtPrice, this.minCost, this.stock, this.minIntegral);
        }
        
        @Override
        public String toString() {
            return "ProductResultDto.ProductResultDtoBuilder(minPrice=" + this.minPrice + ", minOtPrice=" + this.minOtPrice + ", minCost=" + this.minCost + ", stock=" + this.stock + ", minIntegral=" + this.minIntegral + ")";
        }
    }
}
